/*
 * @Author: HeAo
 * @Date: 2021-09-26 14:10:24
 * @LastEditTime: 2021-09-26 14:30:38
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2105\3-1-ES6\day02\1-let-const.js
 * 别乱动！
 */
// var a;
// console.log(a);
// a = 1;



let a = 1;
let b = 2
console.log(a);
// let b = { name: '张三' }

function myFun () {
  // let b = true
  console.log(a);
  console.log('函数', b);
}
myFun()

{
  // let b = 'string'
  console.log('局部作用域', b);
}

// for (var i = 0; i < 10; i++) {
//   console.log(i);
// }

// console.log('for循环外部', i);

// const
const c = 10;
c++